#include "Star.h"
#include "global/GlobalDefine.h"
Star::Star(){

}

Star::~Star(){

}

bool Star::init(){
	bool bRet = false;
	do{
		CC_BREAK_IF(!Entity::init());

		bRet = true;
	}while(0);
	return bRet;
}

CCRect Star::boundBox(){
	if(getSprite() == NULL){
		return CCRect(0,0,0,0);
	}

	CCPoint pos = this->getPosition();
	CCSize size = getSprite()->getContentSize();
	size.width = size.width * PERCENT_CRASH_star;
	size.height = size.height * PERCENT_CRASH_star;

	return CCRect(pos.x - size.width/2, pos.y - size.height/2, size.width, size.height);
}
